package bot;

public class Cjuubot {
	public static void main(String[] args) {
		SettingsLoader settingsLoader = new SettingsLoader("settings.ini");
		TriggerLoader triggerLoader = new TriggerLoader("triggers.txt");

		settingsLoader.load();
		triggerLoader.load();

		Client client = new Client(settingsLoader.getServer(), settingsLoader.getPort());
		IrcBot cjuubot = new IrcBot(settingsLoader.getNickName(),
				settingsLoader.getFullName(), settingsLoader.getAuthName(),
				settingsLoader.getAutoJoinChannels(), client,
				triggerLoader.getTriggerList());

		cjuubot.connect();
	}
}
